%%%%%
%%
%% This file sets up the Green datatype and creates Green macros.
%% These are for greensheets.
%%
%%%%%

\DECLARESUBTYPE{Green}{Element}
\PRESETS{Green}{
  \FD\MYfile	{} %% filename (in \greens dir)
  \FS\MYtext	{\ifx\MYfile\empty\else%
		  \getextractenvs{document}{\greens/\MYfile}%
		\fi}
  }

\DECLARESUBTYPE{GreenWithSymbol}{Green}
\PRESETS{GreenWithSymbol}{
  \FD\MYsymbol  {defaultsymbol}
  }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NEW{Green}{\gSuccession}{
  \s\MYname     {Rules of Succession}
  \s\MYfile     {succession.tex}
}

\NEW{Green}{\gSpark}{
  \s\MYname     {Creating Spark Devices}
  \s\MYfile     {Spark.tex}
}

\NEW{Green}{\gCombat}{
  \s\MYname     {Combat}
  \s\MYfile     {combat.tex}
}

\NEW{Green}{\gEconomics}{
  \s\MYname     {Economics and Industry}
  \s\MYfile     {economics.tex}
}

\newinstance{GreenWithSymbol}{\gImmortals[1]}{
  \s\MYname      {Game of the Immortals}
  \s\MYfile      {immortals.tex}
  \s\MYsymbol    {#1}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
